export function getTime(type, time) {
  const date = time === undefined ? new Date() : new Date(time)
  let year = date.getFullYear()
  let month = date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1
  let month2 = date.getMonth() + 1
  let day = date.getDate() < 10 ? '0' + date.getDate() : date.getDate()
  return type != 'month' ? `${year}年${month}月${day}日` : `${year}年${month2}月`
}